@import "~cube-ui/src/common/stylus/mixin.styl"
//自定义mixin


//处理有没有底部导航方法
caipiao-is-bottom(footer,bottom=0px)
  if footer == true
    $caipiao-nav-bottom
  else
    bottom

  //方法


//统一样式卡片选项配置================================================
$cp-card-bg =$cp-my-md-main
$cp-card-box-shadow= $my-header-box-shadow
$cp-card-padding=10px
$cp-card-margin=10px

cp-my-gb-card()
  background-color $global-bg-color
  box-shadow $global-box-shadow-my
  border-radius 4px
  padding 12px 12px
//定义方法 卡片样式方法
cp-card-style(bg=$global-bg-color, bs=$cp-card-box-shadow,p=$cp-card-padding,mar=$cp-card-margin) {
  background-color bg
  box-shadow bs
  padding p
  margin mar
  color $global-text-color
  & .header {
    background-color: $caipiao-main-opercity;
    line-height  $caipiao-tab-bar
    padding 0px 10px
    font-weight bold
    font-size $fontsize-medium
  }
  & .content {
    background-color $global-bg-color
  }
  & .spider {
    background-color: $caipiao-main-opercity;
    margin-left -(p)
    margin-right -(p)
    margin-top 10px
    height 6px
  }
  & .footer {
    padding 10px
  }
}